package com.zhijiaoyun.dao;

import com.zhijiaoyun.dao.core.IBaseDao;
import com.zhijiaoyun.model.Item;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shisfish
 * @date 2018/1/18
 */
public interface IItemDao extends IBaseDao<Item> {
    /**
     * get by key and type
     *
     * @param key
     * @param type
     * @return
     */
    Item selectByKeyType(@Param("key") String key, @Param("type") String type);

    /**
     * list by type
     *
     * @param type
     * @return
     */
    List<Item> selectByType(String type);

    /**
     * list by type keys
     *
     * @param type
     * @param keys
     * @return
     */
    List<Item> getByKeysType(@Param("type") String type, @Param("keys") List<String> keys);
}
